<nm-buttons>
    <nm-button [option]="{icon:'icon-plus'}" (click)="action('add')" title="增加"></nm-button>
    <nm-button *ngFor="let button of option.buttons" [option]="button" (click)="action('button', button)" ></nm-button>
</nm-buttons>
<nm-table [(option)]="table" #tableCom></nm-table>

<ng-template #template>
    <nm-form #formCom [option]="option.form" [ngStyle]="{width: option.width}"></nm-form>
</ng-template>